<?php if(!$this->cart->contents()):

    echo ' <li>  <span class="item">You don\'t have any items yet. </span> </li>';
else:
?>
            <?php foreach($this->cart->contents() as $items): ?>
            <?php $i = 1; ?>
              <li>
                  <span class="item">
                    <span class="item-left">
                        <img src="<?php echo base_url().'public/img/books/'.$items['img']; ?>" class="img-responsive img_cart" alt="" />
                        <span class="item-info">
                            <span class="nameCart"><?php echo $items['name']; ?></span>
                            <span>
                                <?php echo $items['qty'] .'x'. $this->cart->format_number($items['price']); ?>=
                                <?php echo '&euro;'.$this->cart->format_number($items['subtotal']); ?>

                            </span>
                        </span>
                    </span>
                    <span class="item-right">
                        <button value="<?php echo $items['rowid']?>" class="btn btn-xs btn-danger pull-right removeCard">x</button>
                    </span>
                </span>
              </li>

            <?php $i++; ?>
            <?php endforeach; ?>

              <li class="divider"></li>
              <li><a class="text-center" href="<?php echo base_url(); ?>index.php/book/viewCart">View Cart</a></li>


              
            
                 
               





<?php 


 

endif;
?>